from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render

# Create your views here.
from reports.models import SuitReport


def report_detail(request,**kwargs):
    report_id = kwargs['report_id']
    suitReport = SuitReport.objects.all().filter(id=report_id)
    if suitReport:
        content = suitReport[0].html_result
    else:
        content=None
    return HttpResponse(content, None, None)

def login_action(request):


    return render(request, 'index.html')